﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Facebook_Graph_Toolkit.FacebookObjects {
    /// <summary>
    /// Represents a member in a Group
    /// </summary>
    public class GroupMember : GraphApi.GraphApiObject{
        internal GroupMember(JSON.JsonObject JO) : base(JO) { }
        /// <summary>
        /// Name of member
        /// </summary>
        public string Name { get { return (string)data["name"]; } }
        /// <summary>
        /// User ID of member
        /// </summary>
        public string ID { get { return (string)data["id"]; } }
        /// <summary>
        /// Whether the member is an administrator of the Group
        /// </summary>
        public bool IsAdministrator { get { return (bool)data["administrator"]; } }
    }
}
